const router = [
  {
    // 任务管理首页
    path: '/task',
    name: 'TaskManage',
    component: () => import('@/views/task/index.vue'),
    meta: {
      title: '任务管理',
      keepAlive: true,
      deepth: 2,
    },
  },
  {
    // 任务添加 由于产品化没有任务审核，所以此功能没有使用
    /* 由于app端暂时没有编辑功能，待办对应的页面暂时都跳转到详情页  */
    path: '/task/taskAddOrEdit',
    name: 'TaskAddOrEdit',
    component: () => import('@/views/task/details.vue'),
    meta: {
      title: '任务管理',
      // keepAlive: true,
      // deepth: 1,
    },
  },
  {
    // 任务管理详情页
    path: '/task/detail',
    name: 'TaskDetail',
    component: () => import('@/views/task/details.vue'),
    meta: {
      title: '任务管理详情',
      keepAlive: true,
      deepth: 3,
    },
  },
  {
    // 添加领导批示
    path: '/leaderApproveAdd',
    name: 'LeaderApproveAdd',
    component: () => import('@/views/task/details/leaderApproveAdd.vue'),
    meta: {
      title: '批示',
      keepAlive: true,
      deepth: 4,
    },
  },
  {
    // 添加督办通知
    path: '/reminderNoticeAdd',
    name: 'ReminderNoticeAdd',
    component: () => import('@/views/task/details/reminderNoticeAdd.vue'),
    meta: {
      title: '督办通知',
      keepAlive: true,
      deepth: 4,
    },
  },
  {
    // 任务状态设置
    path: '/setTaskStatus',
    name: 'SetTaskStatus',
    component: () => import('@/views/task/details/setTaskStatus.vue'),
    meta: {
      title: '任务状态设置',
      keepAlive: true,
      deepth: 4,
    },
  },
  {
    // 任务评价
    path: '/evaluateTask',
    name: 'EvaluateTask',
    component: () => import('@/views/task/details/evaluateTask.vue'),
    meta: {
      title: '任务评价',
      keepAlive: true,
      deepth: 4,
    },
  },
]
export default router
